package event;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTable;

public class MyFrame08 extends JFrame {
	JTable tb = null;

	public MyFrame08() {
		setLayout(new BorderLayout());
		String[][] rows = { { "홍길동", "010", "서초구서초동" },
				{ "유관순", "016", "강동구길동" }, { "아무나", "018", "강남구역삼동" } };
		String colNames[] = { "이름", "전화번호", "주소" };
		tb = new JTable(rows, colNames);
		add(new JScrollPane(tb), "Center");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setBounds(100, 100, 400, 300);
		setVisible(true);
	}




	public static void main(String[] args) {
		new MyFrame08();
	}

}
